package com.easy.test;


import com.easy.threads.entity.Auto;
import com.easy.threads.entity.Partition;
import com.easy.threads.factory.ThreadFactory;

/**
 * 描述:
 *
 * @author gwj
 * @date 2022年05月19日 14:36
 */

public class Run {

    public static void main(String[] args) throws InterruptedException {

       

        /*ThreadParameter parameter = new ThreadParameter();
        parameter.setThreadCount(1);
        parameter.setExpansionCount(5);
        parameter.setThreadNamePrefix("EASY-");
        parameter.setPartition(new Partition("TEST",500));
        parameter.setAuto(new Auto(true,new ScanTest1(),5));
        ThreadFactory.createThread(parameter);*/
        ThreadFactory.newThreadPool(3,0,"EASY",
                new Partition("TEST",500),
                new Auto(true,new ScanTest1(),15));

//        Executors.newFixedThreadPool(10);

    }
}
